﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using winform_encryption.Models;

namespace winform_encryption
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MyEncoder encoder = new MyEncoder();
            encoder.ThePlain = this.textBox1.Text;
            encoder.TheKey = this.textBox2.Text;
            encoder.Encode();
            this.label1.Text = encoder.Cypher;
        }
    }
}
